package com.lanyam.travel.base.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

/**
 * <p>
 * 旅游线路上的景点或酒店
 * </p>
 *
 * @author rosson
 * @since 2020-01-27
 */
@TableName("line_goods")
public class LineGoods extends Model<LineGoods> {

    private static final long serialVersionUID = 1L;

    private String id;
    /**
     * 旅游线路id
     */
    @TableField("line_id")
    private String lineId;
    /**
     * 景点/酒店 id
     */
    @TableField("goods_id")
    private String goodsId;
    /**
     * 区分是景点还是酒店0为景点，1为酒店
     */
    @TableField("goods_type")
    private Integer goodsType;


    public String getId() {
        return id;
    }

    public LineGoods setId(String id) {
        this.id = id;
        return this;
    }

    public String getLineId() {
        return lineId;
    }

    public LineGoods setLineId(String lineId) {
        this.lineId = lineId;
        return this;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public LineGoods setGoodsId(String goodsId) {
        this.goodsId = goodsId;
        return this;
    }

    public Integer getGoodsType() {
        return goodsType;
    }

    public LineGoods setGoodsType(Integer goodsType) {
        this.goodsType = goodsType;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "LineGoods{" +
        ", id=" + id +
        ", lineId=" + lineId +
        ", goodsId=" + goodsId +
        ", goodsType=" + goodsType +
        "}";
    }
}
